package cn.growthgate.fgo.service.impl;

import org.springframework.stereotype.Service;

import cn.growthgate.fgo.common.base.BaseServiceImpl;
import cn.growthgate.fgo.entity.ClassIntermediary;
import cn.growthgate.fgo.mapper.ClassIntermediaryMapper;
import cn.growthgate.fgo.service.IClassIntermediaryService;

/**
 * <p>
 * 职介相性 服务实现类
 * </p>
 *
 * @author GrowthGate
 * @since 2019-05-11
 */
@Service
public class ClassIntermediaryServiceImpl extends BaseServiceImpl<ClassIntermediaryMapper, ClassIntermediary> implements IClassIntermediaryService {

	@Override
	public ClassIntermediary get(Long attackerId, Long defenderId) {
		ClassIntermediary classIntermediary = new ClassIntermediary();
		classIntermediary.setAttackerId(attackerId);
		classIntermediary.setDefenderId(defenderId);
		return baseMapper.selectOne(classIntermediary);
	}
	
}
